package com.netease.pris.activity;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.netease.framework.l;
import java.util.List;

public class dm extends ArrayAdapter
{
  LayoutInflater a;
  Context b;

  public dm(SetSkinActivity paramSetSkinActivity, Context paramContext, int paramInt, List paramList)
  {
    super(paramContext, paramInt, paramList);
    this.b = paramContext;
    this.a = LayoutInflater.from(paramContext);
  }

  private void a(View paramView, l paraml)
  {
    if ((paramView == null) || (paraml == null))
      return;
    ImageView localImageView1 = (ImageView)paramView.findViewById(2131558441);
    TextView localTextView = (TextView)paramView.findViewById(2131558442);
    ImageView localImageView2 = (ImageView)paramView.findViewById(2131558443);
    localImageView1.setImageDrawable(paraml.e());
    localTextView.setText(paraml.c());
    if (!paraml.f())
      localImageView2.setImageResource(2130837826);
    while (true)
    {
      paramView.setTag(paraml);
      break;
      if (paraml.g())
      {
        localImageView2.setImageResource(2130837540);
        continue;
      }
      localImageView2.setImageResource(2130837539);
    }
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    if (paramInt <= -2 + getCount())
    {
      l locall = (l)getItem(paramInt);
      if ((paramView != null) && (paramView.findViewById(2131558441) != null));
      while (true)
      {
        a(paramView, locall);
        return paramView;
        paramView = this.a.inflate(2130903053, null);
      }
    }
    if ((paramView != null) && (paramView.findViewById(2131558441) == null));
    while (true)
    {
      paramView.setTag(null);
      break;
      paramView = this.a.inflate(2130903054, null);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.dm
 * JD-Core Version:    0.6.0
 */